
<!-- recommended coupon list start... -->

{if $oRecommendedCoupons|count > 0}
	<div class="coupon_recommended_list">
    	<div class="coupon_title_box">
    		<div class="coupon_title navTitleFont">
    			Recommended Coupons
    		</div>
    	</div>
    <!-- google_ad_section_start -->
    
    {foreach item=oCoupon from=$oRecommendedCoupons name=plist}
		{if $oCoupon->getTrackingURL() != ''}
			{assign var="URL" value="{$oCoupon->getTrackingURL()}"}
		{else}
			{assign var="URL" value="{$oCoupon->getMerchant()->getDisplayURL()}"}
		{/if}
	
		<div class="rplist">
			<div class="titleBox">
				<h3 class="title">
					<A title="{$oCoupon->getName()}" href="{$HOME_URL}/coupons/{$oCoupon->getId()}" rel="nofollow" target="_blank">
						<!-- google_ad_section_start -->
						{$oCoupon->getName()|truncate:240:"..."}
						{if $oCoupon->getImpressionpixel() != ''}
							<IMG src="{$oCoupon->getImpressionpixel()}" width="1" height="1">
						{/if}
						<!-- google_ad_section_end -->
					</A>
				</h3>
			</div>
			<div class="contentBox">
				{if $oCoupon->getCreativeType() == 1}
					<div class="img">
						<a title="{$oCoupon->getName()}" id="thumb_{$oCoupon->getId()}" href="{$oCoupon->getCouponImage()->getImpressionTrackingUrl()}" class="highslide" onclick="return hs.expand(this)" rel="nofollow" target="_blank">
							<IMG border="0" width="140" height="80" src="{$HOME_URL}/images/url/140/80/{$oCoupon->getCouponImage()->getImpressionTrackingUrl()|base64_encode}" alt="{$oCoupon->getName()}" />
						</a>					
						<div class="highslide-caption">
						</div>
					</div>
					
				{/if}
			
				<div class="summary">
					{if $oCoupon->getDisplayCouponType() != ''}
	                    <div class="attributes">
	                   		<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Promo Type:</div><div class="greenLinkColor font12">{$oCoupon->getDisplayCouponType()}</div>                 		
	                    </div>
                    {/if}
                	
                	{if $oCoupon->getStartDate() != ''}
						<div class="attributes">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Start Date:</div><div class="greenLinkColor font12">{$oCoupon->getStartDate()|date_format}</div> 
						</div>
					{/if}
					
					{if $oCoupon->getEndDate() == '' or $oCoupon->getEndDate() == '0000-00-00' or $oCoupon->getEndDate() == '3333-03-03'}
						<div class="attributes">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">End Date:</div><div class="greenLinkColor font12">limited time</div> 
						</div>
					{else}
						<div class="attributes">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">End Date:</div><div class="greenLinkColor font12">{$oCoupon->getEndDate()|date_format}</div> 
						</div>
					{/if}
					   
					{if $oCoupon->getCategory()->getName() != ''}
						<div class="category">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Category:</div> <a href="javascript:void(0);" onclick="requestPage('/categories/{$oCoupon->getCategory()->getFilteredName()}-discount-coupons', {$oCoupon->getCategory()->getId()}, 1);" target="_blank">{$oCoupon->getCategory()->getName()}</a>
						</div>						
					{/if}
					
					{if $oCoupon->getCode() != ''}
						<div class="couponCode">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Coupon Code: </div><span class="code">{$oCoupon->getCode()}</span>
						</div>
					{/if}

				</div>
			</div>			
		</div>
		{/foreach}
	    <!-- google_ad_section_end -->
	</div>
	
	<div class="empty"></div>
	<div class="clear"></div>
{/if}
<!-- recommended coupon list the end. -->


<!-- featured coupon list start... -->
{if $oFeaturedCoupons|count > 0}
    <div class="coupon_featured_list">
    	<div class="coupon_title_box">
    		<div class="coupon_title navTitleFont">
    			Featured Coupons
    		</div>    		
    	</div>
    
    {foreach item=oCoupon from=$oFeaturedCoupons name=plist}
		{if $oCoupon->getTrackingURL() != ''}
			{assign var="URL" value="{$oCoupon->getTrackingURL()}"}
		{else}
			{assign var="URL" value="{$oCoupon->getMerchant()->getDisplayURL()}"}
		{/if}
	
		<div class="fplist">
			<div class="titleBox">
				<h3 class="title">
					<A title="{$oCoupon->getName()}" href="{$HOME_URL}/coupons/{$oCoupon->getId()}" rel="nofollow" target="_blank">
						<!-- google_ad_section_start -->
						{$oCoupon->getName()|truncate:240:"..."}
						{if $oCoupon->getImpressionpixel() != ''}
							<IMG src="{$oCoupon->getImpressionpixel()}">
						{/if}
						<!-- google_ad_section_end -->
					</A>
				</h3>
			</div>
			<!-- google_ad_section_start(weight=ignore) -->
			<div class="contentBox">
				{if $oCoupon->getCreativeType() == 1}
					<div class="img">
						<a title="{$oCoupon->getName()}" id="thumb_{$oCoupon->getId()}" href="{$oCoupon->getCouponImage()->getImpressionTrackingUrl()}" class="highslide" onclick="return hs.expand(this)" rel="nofollow" target="_blank">
							<IMG border="0" width="140" height="80" src="{$HOME_URL}/images/url/140/80/{$oCoupon->getCouponImage()->getImpressionTrackingUrl()|base64_encode}" alt="{$oCoupon->getName()}" />
						</a>					
						<div class="highslide-caption">
						</div>
					</div>
					
				{/if}
			
				<div class="summary">					
					{if $oCoupon->getDisplayCouponType() != ''}
	                    <div class="attributes">
	                   		<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Promo Type:</div><div class="greenLinkColor font12">{$oCoupon->getDisplayCouponType()}</div>                 		
	                    </div>
                    {/if}
                	
                	{if $oCoupon->getStartDate() != ''}
						<div class="attributes">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Start Date:</div><div class="greenLinkColor font12">{$oCoupon->getStartDate()|date_format}</div> 
						</div>
					{/if}
					
					{if $oCoupon->getEndDate() == '' or $oCoupon->getEndDate() == '0000-00-00' or $oCoupon->getEndDate() == '3333-03-03'}
						<div class="attributes">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">End Date:</div><div class="greenLinkColor font12">limited time</div> 
						</div>
					{else}
						<div class="attributes">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">End Date:</div><div class="greenLinkColor font12">{$oCoupon->getEndDate()|date_format}</div> 
						</div>
					{/if}
					   
					{if $oCoupon->getCategory()->getName() != ''}
						<div class="category">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Category:</div> <a href="javascript:void(0);" onclick="requestPage('/categories/{$oCoupon->getCategory()->getFilteredName()}-discount-coupons', {$oCoupon->getCategory()->getId()}, 1);">{$oCoupon->getCategory()->getName()}</a>
						</div>						
					{/if}
					
					{if $oCoupon->getCode() != ''}
						<div class="couponCode">
							<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Coupon Code: </div><span class="code">{$oCoupon->getCode()}</span>
						</div>
					{/if}
				</div>
			</div>
			<!-- google_ad_section_end(weight=ignore) -->
		</div>
		
		{/foreach}
	    
	</div>
	
	<div class="empty"></div>
	<div class="clear"></div>
{/if}
<!-- featured coupon list the end. -->
